<template>
  <div>
    <input type="text"
           v-model="result">
  </div>
</template>

<script>
export default {
  data () {
    return {
      result: ''
    }
  },
  created () {
    const arr = ['小花', '小明', '小可爱', '小王']
    const res = arr[Math.floor(Math.random() * arr.length)]
    this.result = res
  }
}
</script>

<style>
</style>
